package SplitString;
import java.util.Scanner;
/*
    切割字符串
 */
public class SplitString {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入姓名,年龄");
        String s1 = sc.nextLine();

        String[] sArr = s1.split(",");
        Student stu1 = new Student(sArr[0],sArr[1]);

        System.out.println(stu1.getName()+"今年"+stu1.getAge()+"岁");

    }
}
